//package com.yunhe.spo.service.impl;
//
//import com.yunhe.common.service.CustomRouteService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.common.netflix.zuul.RoutesRefreshedEvent;
//import org.springframework.common.netflix.zuul.filters.Route;
//import org.springframework.common.netflix.zuul.filters.RouteLocator;
//import org.springframework.context.ApplicationEventPublisher;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * @author liuronglei
// */
//@Service
//public class CustomRouteServiceImpl implements CustomRouteService {
//    @Autowired
//    private ApplicationEventPublisher publisher;
//
//    @Autowired
//    private RouteLocator routeLocator;
//
//
//    public void refreshRoute() {
//        RoutesRefreshedEvent routesRefreshedEvent = new RoutesRefreshedEvent(routeLocator);
//        publisher.publishEvent(routesRefreshedEvent);
//    }
//
//    public List<Object> getRoutes() {
//        List<Route> routes =  routeLocator.getRoutes();
//        return null;
//    }
//}
